package com.example.demo.entity;

import lombok.ToString;

import javax.persistence.Basic;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Created by Q-ays.
 * whosqays@gmail.com
 * 07-14-2018 00:57
 */
@Entity
@Table(name="demo")
@ToString
public class DemoEntity {
    @Id
    private String id;

    @Basic
    private String body;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }
}
